import * as types from './mutation-types'

const mutations = {
  [types.SET_USERINFO] (state, query) {
    state.userInfo = query
  },
  [types.SET_SELLERINFO] (state, query) {
    state.sellerInfo = query
  },
  [types.SET_USERTOKEN] (state, query) {
    state.userToken = query
  },
  [types.SET_AUTOTABLE] (state, query) {
    state.autoTable = query
  },
  [types.SET_TABLES] (state, query) {
    state.tables = query
  },
  [types.SET_HANDTABLE] (state, query) {
    state.handTable = query
  },
  [types.SET_PACKAGES] (state, query) {
    state.packages = query
  },
  [types.SET_ADDEDPACKAGE] (state, query) {
    state.addedPackage = query
  },
  [types.SET_LOGISTICLIST] (state, query) {
    state.logisticList = query
  },
  [types.SET_COMMONPACKAGE] (state, query) {
    state.commonPackage = query
  },
  [types.SET_LOGOINFO] (state, query) {
    state.logoInfo = query
  }
}

export default mutations
